package com.fit.service;

import java.io.Serializable;
import java.util.Collection;
import java.util.Date;

import org.apache.tapestry5.hibernate.annotations.CommitAfter;

import com.fit.interfaces.BorrowI;
import com.fit.interfaces.User;

public interface BorrowsI {

	@CommitAfter
	public BorrowI save(BorrowI borrow);

	public Collection<BorrowI> retrive();

	public BorrowI retriveSingleBorrow(Serializable id);
	@CommitAfter
	public BorrowI editSingleBorrow(BorrowI borrow);
	
	public Collection<BorrowI> retrive(Serializable id);

//	public Collection<BorrowI>  retrivesingleBorrow(Date dateOfBorrow);

}